home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1991 …esperately Seeking Seven / Desperately Seeking Seven.2mg / Dev.CD.8 / Essentials / Tools / DTS.Samples / SC24Teach / Teach.c / UGlobals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-25  |  1.2 KB  |  35 lines  |  [04] ASCII Text (0x0000)

  1. /**********************************************************************
  2. *
  3. * teach uglobals.c -- Version 3.0 
  4. *
  5. * Copyright (c)
  6. * Apple Computer, Inc.  1986-1990
  7. * All Rights Reserved.
  8. *
  9. * Developer Technical Support Apple II Sample Code
  10. *
  11. * This file contains the code which intializes the global variables 
  12. * used by the busy box program.
  13. *
  14. **********************************************************************/
  15.  
  16. #include <memory.h>
  17. #include <window.h>
  18.  
  19. unsigned int    userID;         /* Application ID assigned by Memory Mgr */
  20. unsigned int    quitFlag;       /* True when quitting */
  21. unsigned int    staggerCount;   /* Used to stagger windows as they open */
  22. WmTaskRec       event;          /* All events are returned here. */
  23. GrafPortPtr     lastWindow;     /* This private global is used in CheckFrontW.
  24.                                 ** to prevent extra work when the windows
  25.                                 ** have not changed.  It is initialized
  26.                                 ** at the beginning of MainEvent.
  27.                                 */
  28.  
  29. void    initGlobals()
  30. {
  31.     quitFlag = staggerCount = 0;
  32.     event.wmTaskMask = 0x001FFFFFL;
  33.     lastWindow = (GrafPortPtr)-1;
  34. }
  35.